package com.leiyuee.gulimall.cart.config;

import com.leiyuee.gulimall.cart.config.ThreadPoolUtils;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ThreadPoolExecutor;

/**
 * @ClassName: ThreadPoolConfig
 * @Description: ThreadPoolConfig
 **/
@Configuration
public class ThreadPoolConfig {
    @Bean
    public ThreadPoolExecutor threadPoolExecutor() {
        return ThreadPoolUtils.getNewInstance().threadPoolExecutor();
    }
}

